const mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');
var NewsSchema = new mongoose.Schema({
    title:String,
    desc:String,
    cateId:mongoose.Schema.ObjectId
});


NewsSchema.plugin(mongoosePaginate);

module.exports=mongoose.model('News',  NewsSchema);
